package com.hyy.api.domain.provider.bo;

import com.hyy.api.domain.provider.ProvProvider;
import com.hyy.common.core.validate.AddGroup;
import com.hyy.common.core.validate.EditGroup;
import com.hyy.common.mybatis.core.domain.BaseEntity;
import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

/**
 * 上游供应商业务对象 prov_provider
 *
 * @author ruoyi
 * @date 2025-05-19
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = ProvProvider.class, reverseConvertGenerate = false)
public class ProvProviderBo extends BaseEntity {

    /**
     * 供应商ID
     */
    @NotNull(message = "供应商ID不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 供应商名称
     */
    private String name;

    /**
     * 供应商编码
     */
    private String code;

    /**
     * 供应商状态
     */
    private Integer status;

    /**
     * 说明
     */
    private String remark;

    /**
     * 接入程序id
     */
    @NotNull(message = "接入程序id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long apiProgramId;

    /**
     * 关联公司
     */
    private Long corporateId;

    /**
     * 供应商连接程序参数列表
     */
    private List<ProvProviderParamBo>  paramsList;


}
